Gets or sets Represents JScript source code, i.e. a series of Unicode characters intended to be written into a <script>...</script> block of a rendered HTML file. The script will be placed in such a way that it is run immediately following the page load.
Parent Type: RenderContext
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public string Script { get; set; } |
This script will only be added to pages rendered dynamically as LRM content. Pages that are contained within packages that do not have LearningSession.CurrentActivityResourceType of ResourceType.Lrm will ignore this value.
The value may not be set to null or an empty string.
If the value has not been initialized, null is returned when the property get accessor is called.